package com.fenyin.samples.study.parttern.struct.compent.example1;  

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 *@Title:  安全模式的合成模式
 *<p>合成模式：具体树叶构件类</p>
 *@Author:fengzhichao  
 *@Since:2012-9-29  
 *@Version:1.1.0
 */
public class TextAreaComponent implements Component {
	
	private static final Log log = LogFactory.getLog(TextAreaComponent.class);
	
	private String text;
	
	public TextAreaComponent(String text){
		this.text = text;
	}
	
	public void draw() {
		log.info("this is TextAreaComponent："+text);
	}

}
